import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SettlementComponent } from './pages/settlement/settlement.component';
import { SettlementDetailComponent } from './pages/settlement-detail/settlement.component';
import { SubjectInfoComponent } from './pages/subject -info/subject -info.component';
import { PermissionManagerComponent } from './pages/permission-manager/permission-manager.component';
const routes: Routes = [
    {
        path: 'settlement', component: SettlementComponent, data: {
            breadcrumbs: [{ title: '结算管理' }]
        },
        children: [
            {
                path: 'detail', component: SettlementDetailComponent, data: {
                    breadcrumbs: [{ title: '结算管理', path: '/subjects/settlement' }, { title: '新增结算' }]
                }
            },
            {
                path: 'detail/:id', component: SettlementDetailComponent, data: {
                    breadcrumbs: [{ title: '结算管理', path: '/subjects/settlement' }, { title: '结算详情' }]
                }
            },
        ]
    },
    {
        path: 'info', component: SubjectInfoComponent, data: {
            breadcrumbs: [{ title: '科目信息' }]
        },

    },
    {
        path: 'permission', component: PermissionManagerComponent, data: {
            breadcrumbs: [{ title: '科目信息' }]
        },

    }
];

export const declarationComponents = [
    SettlementComponent,
    SettlementDetailComponent,
    SubjectInfoComponent,
    PermissionManagerComponent
];

export const entryComponents = [
];

@NgModule({
    imports: [
        RouterModule.forChild(routes)
    ],
    exports: [
        RouterModule
    ]
})
export class SubjectRoutingModule { }
